import request from '@/utils/request'

// 查询postprocess列表
export function listPostprocess(query) {
  return request({
    url: '/cmenonmetal/postprocess/list',
    method: 'get',
    params: query
  })
}

// 查询postprocess详细
export function getPostprocess(id) {
  return request({
    url: '/cmenonmetal/postprocess/' + id,
    method: 'get'
  })
}

// 新增postprocess
export function addPostprocess(data) {
  return request({
    url: '/cmenonmetal/postprocess',
    method: 'post',
    data: data
  })
}

// 修改postprocess
export function updatePostprocess(data) {
  return request({
    url: '/cmenonmetal/postprocess',
    method: 'put',
    data: data
  })
}

// 删除postprocess
export function delPostprocess(id) {
  return request({
    url: '/cmenonmetal/postprocess/' + id,
    method: 'delete'
  })
}
